Skip to content

Conversation

alexisrolland
Copy link

@alexisrolland alexisrolland commented Oct 4, 2025

This PR is a proposal to add a quality of life feature, to output width and height information from empty latent nodes. This allows users to directly use empty latent nodes to set the width and height in their workflow, without having to create additional primitive integer nodes.

Nodes for which I have done the change (not sure if the list is exhaustive):

  • EmptyLatentImage
  • EmptyChromaRadianceLatentImage
  • EmptyCosmosLatentVideo
  • EmptyLTXVLatentVideo
  • EmptyMochiLatentVideo
  • EmptySD3LatentImage
  • StableCascade_EmptyLatentImage
empty_latents

@VioletVolatile
Copy link

Wouldn't it make a lot more sense to add a "Get Latent Size" node, similar to the existing "Get Image Size" node?

@alexisrolland
Copy link
Author

alexisrolland commented Oct 9, 2025

The point was precisely to avoid having to add extra nodes to set / get the width and height since they are already manually set in the empty latent nodes.

@asagi4
Copy link
Contributor

asagi4 commented Oct 10, 2025

This would be solved in a much cleaner way if all inputs were also available as outputs automatically (Just like all inputs have sockets nowadays, just for outputs. I think there is an issue for this on the frontend repo)

I don't know if adding outputs to so many nodes for a minor convenience is really worth it.

@alexisrolland
Copy link
Author

This would be solved in a much cleaner way if all inputs were also available as outputs automatically (Just like all inputs have sockets nowadays, just for outputs. I think there is an issue for this on the frontend repo)

Good point!

@without-ordinary
Copy link

This would be solved in a much cleaner way if all inputs were also available as outputs automatically (Just like all inputs have sockets nowadays, just for outputs. I think there is an issue for this on the frontend repo)

There is.

Comfy-Org/ComfyUI_frontend#2825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants